import 'package:fluro/fluro.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';

import 'modules/scope/domain.dart' as Scope;
import 'routes/setup.dart';
import 'treaty/palette.dart';

setup() {
  SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    systemNavigationBarColor: palette.theme,
    statusBarColor: palette.theme
  ));
}

List<Provider> createProviders() {
  return [
    Provider<Router>(
      create: (_)  {
        final router = Router();
        configureRouter(router);
        return router;
      },
    ),
    Provider<Scope.Domain>(
      create: (_) => Scope.Domain(),
    ),
  ];
}